package com.hwk.dynamic.array;

import com.hwk.dynamic.List;

public class Client {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(5,6);
        System.out.println(list.toString());

        List<User> userList = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            User user = new User();
            user.setAge(i);
            user.setName(i+"名字");
            userList.add(user);
        }

        System.out.println(userList);
    }
}
